/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.admin.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.tenant.mp.TenantEntity;
import org.springblade.modules.admin.vo.contract.ContractExtVo;

import java.util.Date;
import java.util.List;

/**
 * 电梯合同信息实体类
 *
 * @author ysq
 * @since 2022-03-01
 */
@Data
@TableName(value = "blade_elevator_contract",autoResultMap = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ElevatorContract对象", description = "电梯合同信息")
public class ElevatorContract extends TenantEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 合同ID
	 */
	@ApiModelProperty(value = "合同ID")
	private Long contractId;
	/**
	 * 项目Id
	 */
	@ApiModelProperty(value = "项目Id")
	private Long buildingId;

	/**
	 * 项目Id
	 */
	@ApiModelProperty(value = "项目Id")
	private String buildingName;

	/**
	 * 电梯ID
	 */
	@ApiModelProperty(value = "电梯ID")
	private Long elevatorId;


	/**
	 * 电梯ID
	 */
	@ApiModelProperty(value = "电梯ID")
	private String elevatorAddress;

	@ApiModelProperty(value = "设备品种")
	private String varietiesEquipment;

	/**
	 * 合同类型	1:保养合同	2:委托合同	3:质保合同	4:维修合同
	 */
	@ApiModelProperty(value = "合同类型	1:保养合同	2:委托合同	3:质保合同	4:维修合同")
	private Integer contractType;

	/**
	 * 合同开始时间
	 */
	@ApiModelProperty(value = "合同开始时间")
	private Date contractBeginTime;
	/**
	 * 合同结束时间
	 */
	@ApiModelProperty(value = "合同结束时间")
	private Date contractEndTime;


	//2023-07-08 v4版本调整
	/**
	 * 月保养费用
	 */
	@ApiModelProperty(value = "月保养费用")
	private String monthCostDesc;

	@ApiModelProperty(value = "服务次数")
	private Integer maintainCounts;


	/**
	 * 保养类型	1:清包	2:半包	3:全包	4:三包	5:小包	6:免包	7:维修
	 */
	@ApiModelProperty(value = "保养类型	1:清包	2:半包	3:全包	4:三包	5:小包	6:免包	7:维修")
	private String maintainType;
	/**
	 * 是否需要驻场0:不需要1：需要
	 */
	@ApiModelProperty(value = "是否需要驻场0:不需要1：需要")
	private Integer isLive;
	/**
	 * 年检费用
	 */
	@ApiModelProperty(value = "年检费用")
	private String yearCostDesc;
	/**
	 * 限速器年检费用
	 */
	@ApiModelProperty(value = "限速器年检费用")
	private String yearSpeedGovernorCost;

	@ApiModelProperty(value = "限速器年检费用类型1：包缴，2代缴,3自缴")
	private Integer yearSpeedGovernorCostType;

	@ApiModelProperty(value = "检费用类型1：包缴，2代缴,3:自缴")
	private Integer yearCostType;

	@ApiModelProperty(value = "附件地址")
	@TableField(typeHandler = JacksonTypeHandler.class)
	private MaintainContractType contractTypeHistoryInfo;

	@ApiModelProperty("合同扩展状态")
	@TableField(exist = false)
	private Integer contractExtStatus;

	@ApiModelProperty("合同编号")
	@TableField(exist = false)
	private String contractNo;

	@ApiModelProperty("合同扩展状态")
	@TableField(exist = false)
	private Integer contractStatus;

	@ApiModelProperty("使用单位")
	private Long customerUnitId;

	@ApiModelProperty("移交前上次维保时间")
	private String lastDateDesc;

	@ApiModelProperty("移交前上次维保时间类型")
	private Boolean lastDateType;

	@ApiModelProperty(value = "服务次数")
	private Integer serveCounts;
}
